package com.cheng.student.dao;

import com.cheng.student.beans.Student;
import com.cheng.student.beans.StudentFull;

public class InsertFailedException
    extends Exception
{
    Student student = null;

    public InsertFailedException(StudentFull student)
    {
        this.student.setXM(student.getXm());
        this.student.setId(student.getID());
        this.student.setKSH(student.getKsh());
    }
    public InsertFailedException(Student student)
    {
        this.student = student;
    }
    public Student getStudent()
    {
        return student;
    }

    public void setStudent(Student student)
    {
        this.student = student;
    }
}
